Get rid of non-AMD calls

They will be gone very soon in dojo 2.0.