Make video player js into a jquery plugin