moved tiles into separate js file
tidied up index.html, main.js