javascript syntax checked before submitting of qtype=js