property for setting javascript function before submit