Below is an scrolling tile map engine implemented in JavaScript. To see the source code, or to make a comment, visit https://thiscouldbebetter.wordpress.com/2017/12/12/a-scrolling-map-tile-engine-in-javascript/.