remove logs and other refactors
refactored client code to coffeescript