Who the hell knows
Removed some faulty haml
Moved client to global scope