Fix javascript issue in strapless TypeError: this.form is null