typo and whitespace changes

small typo fixed and whitespace improv according to http://contribute.jquery.org/style-guide/js/#spacing