Small, standalone, resource loader in JS