Removed jQuery global var, fixed set height method