Fix two dependencies and do not execute DOM Ready tests in AMD mode

/cc @timmywil