added js for index page, login button