Cleaning up AMD definition

Was exposing as an AMD module twice and setting in the global scope twice.