moved javascript to index.js