Fixes JSHint errors / plugin-install errors

Fixed a few minor issues. It's a bit messy but I thought having extra branches for those tiny issues would be an overkill.