jquery debugged + beautified