added defer test and reference to when.js