near to get a working loader in JS :-)