(almost) Infinite 2d Tile map in Javascript