Generate javascript with new plugin