JS Refactor

* general cleanup
* fixes jQuery 1.9 compatibility issue as per [this discussion](https://github.com/gregbell/active_admin/pull/1879#discussion_r3453478)