Decided to learn some JavaScript stuff today and now my head hurts.