Small changes to tiles

Fixed absolute file path
js not working with .. file path