Add Support for AMD / Require.js + Others Fixs