A generic resource loader for node js