created js file and index.html