Fixes #236 Javascript bug, delete build error
Merge pull request #242 from freez10/master

Fix for #236