Simple JavaScript from Code Academy lesson