Merged to main.js and plugins.js