Fixing the page without the event handlers
Splitting the js into respective files
Fixing the jasmine tests