Detect AMD support in JavaScript source files