This tutorial walks you through implementing a 2D scrolling game in JavaScript.
WolframAlpha helped me a lot when studying for Calculus...