Making Loader a jquery plugin