Fix JavaScript module and libraries.
Merge pull request #393 from tetsurom/JSFixPR

Fix JavaScript module and libraries.