fix reference error with AMD-style require statements
fix reference error with AMD-style require statements via @MattKunze