Added new buttons for next and previous. Also moved jquery to an external .js file