Refactor components to use an utility function to define jquery plugins
Created by: alpadev
Problem
Currently every plugin/component defines some boilerplate code that will set it up as a jQuery plugin.
Solution
To make the code a little bit less repetitve, I figured it could be some improvement to move this into an utility function and use that instead.