Abstract the coordinate system drawing javascript out.
Merge pull request #7 from foulwall/refractor

Abstract the coordinate system drawing javascript out.