Merge pull request #217 from eric-wu/js

Fix Travis compile errors.