Support AMD or CJS style of runtime