Generate JS for gh-pages