move script tag in index.html to head so things work on firefoxOS.