random code cleanup

Tried out Webstorm. Wasn’t my thing, but it did have a nice linter ;D
add plugin type
Merge branch 'refactor/plugins'