ah, but why do it in a global function when you can have more fun doing it the "ember way" :)
You're better off moving the map div into a template and creating an "IndexView" and adding your event handlers for the map view in the didInsertElement()
method. Here's a working emberjsbin: http://emberjs.jsbin.com/EsAkAVE/1/edit