Added JavaScript-closures to correct handling of callback functions.
Merge branch 'dev' of https://github.com/dmytroshp/osmex3d.git into dev