Used Jquery Boilerplate to organize code of the plugin properly