put javascript into index.html to enable deployment with dropbox