fix bug introduced when not catering to older Require.JS