javascript by mike mccarthy 2008