Added navigation key support

This is intended as a fix to https://github.com/coolwanglu/pdf2htmlEX/issues/180

Please let me know if this is the right approach, and if there are issues with the new code.

Commit message:

Add key handler, and implement page up, page down, ctrl-home and ctrl-end.

First commit on github and first javascript coding :)