Adding javascript carousel and back buttons on the login page