Fixing plugin to get jQuery passed it