Add ticket purchase form to index.html
Clean up javascript