Make plugin actually work. Add docs, jshint

Your version missed some important parts to make it work.. now everythings fine ;) Please merge this PR as soon as possible or I'll push my version to npm separately. Thanks!