fix coords for real with tileNums
no jquery, add type