Additional jslinting. (defining funtions as globals)
CSS linting.
Improved panning.