rebuild .js as jquery plugin