js events

* goTo api now starts at 1 instead of 0