added script tags to index.html, fixed button