some js fixes, added off() method for click bindings