Converted app to AngularJS, with a controller and service instead of jQuery.