Fixed js alert for forms