Fixes #4.

Ajax requests were failing and firing always() before dom was ready
(thus making the dom cache empty).