Updated Main.js
- Fixed a few plugin issues from previous commit