Issue 115 eslint

I'm not overly happy with this... but i'm open to reviews before I delete it and try again.
Comments inline.
Removed `var` here since it was declared in a higher scope. (Plus JavaScript doesn't doesnt support block level scoping, so it would have crushed the previously declared `server` var anyways.)