Convert all JS events to .on() [Fixes #5]

By converting all .click() calls we can eliminate unecessary
javascript from the view files. All that remains is the debug() method.