now works on IE11, fixed some bugs, changed layers back to map transforms, cleaned code