Something's wrong with the indentation it seems. Doesn't jslint complain?