update: javascript redirection if http redirection fails + fix conflict when using both resetAuto() and resetForm() (both were shown and triggered, but we want to hide error messages from resetAuto() when manually activating resetForm())

Signed-off-by: Stephen L. <lrq3000@gmail.com>