add js file

add js and edit index page