Ok JS, scoping is weeeiiiirrrrddd