Added Javascript check on classic form