moving js plugins to gems