Add index page with jquery functionality