Substandard promise lib for use inside requirejs code