remove excess javascript from index.js