tabs to spaces and better jQuery declaration