trying to make this to work in node+requirejs