Fixes _ not defined error when loaded with amd

The tests pass, however, didn't test it in any non-amd environments...