euler 1 + 2 for http://www.reddit.com/r/learnjavascript/comments/1ceci3/learn_js_properly_study_group_week_2_assignments/