RAW Original code

My original working code (2/20/13) written entirely in Javascript.