recompiled JS with closure using proper parameters, shaved of 30% js output