moved javascript in index to js.js