I give up compiling to javascript cuz idk how to solve closure problem