finished the comparison logic and added errors, comments
refactored the js file to oo design
Merge pull request #3 from gopher-snakes-2013/spike-algorithm

good work team!


fuck.