Jquery facelift

See http://www.reddit.com/r/learnjavascript/comments/1argwy/i_cant_figure_out_whats_wrong_with_my_javascript/
under username gabillions for explanation.