defer javascript that accesses form object

form object is also created deferred