Removed extra white space from JS files, added support for page up and page down keys

Added new cases in JS files for key presses. Case 33, which corresponds to the Page Up key and behaves the same way as if the up arrow was pressed and case 34 which corresponds to the Page Down key and behaves the same ways as if the down arrow was pressed.