Add JavaScript plugin and cleanup config.