removed angularjs and ported to jQuery plugin