close the js scope before we dispach() watchers

probably doesn't matter at all, but feels cleaner