linting js file

Howdy, I really like this library. Saw it needed linting so thought I'd help with it.

Thanks

Dave