Merging partial pull request from pull #15 (https://github.com/slycrel/JSTileMap/pull/15)

Partial pull because half of the commit appears to break other issues as-is.  Need a good example of this one way or the other as I haven't been able to confirm this omitted code is a problem that needs fixing.