removed usage of jQuery, where we could just use straight javascript.