Minor build change: remove trailing tabs
Don't execute DOM ready tests in AMD mode (they aren't loaded before DOM ready). Close gh-1335.