Fix broken build caused by 3fdf1a03
Merge pull request #533 from Ralith/fix-js-build

Fix broken build caused by 3fdf1a03