Update attax.js

change the attax.js to support the "CMD"(Common Module Definition).