Javascript bindings to scratch - nasty hack