Update from http://tomodo.com/viewsource/1099/

Includes console.log()s