Write clean js with modular functions.

AJAX now supported without odd 'array' hacks.

Keyboard shortcuts added.