Merge "Changes in Javascript plugin to compile under new mesh api" into devel/master