I did some stuff
Added counselly.js
Merge pull request #30 from mistergone/master

Mostly, I just separated out the code into a JS file