Added submitForm method, removed domReady call from requirescripts