Move jTable javascript

A minor change to just move some of the ugly javascript that was being built in the `build_jtable()` function of `core/handlers.py` into core.js.