Update the code of JS samples for the new version of engine.
Merge pull request #14 from natural-law/develop

Update the code of JS samples for the new version of engine.