fix reference error with AMD-style require statements