fix require deps, remove amdefine