Now that we use AMD, all source files should have all variables defined or passed inside them. If you use a good editor like WebStorm or Sublime Text, you'll see easily you have a few undefined symbols here.

I see at least `curCSS`, `support` and `rnumnonpx` undefined. You need to pass all relevant variables defined elsewhere as dependencies in the main `define` function.