javascript snippet cross compilation kinda-sorta works (sometimes) i