Move JS into index.