modified js with index.html