adds caching
adds reload module
moves js to index.js
separates tile map and bgobjects into separate modules