move jQuery code from index.js to index.html