Automatic resource compiler for node js