Don't execute DOM ready tests in AMD mode (they aren't loaded before DOM ready). Close gh-1335.

Conflicts:
	src/manipulation.js
Minor build change: remove trailing tabs