Codestyle for client coffeescript/javascript

I have an idea to extract PhantomJS client from Poltergeist into a separate gem so it'll be available separately, outside of Capybara test environment. Meanwhile, I was checking the client code and noticed that the codestyle is very inconsistent and non-idiomatic.

So, here's the fix for that.