making carousel a jquery plugin