Note: You have got the window.map and window.app objects on global scope...