execute js logic for index page when index.html is not appended to URL
in the location bar