Support commonjs and amd