#891 - fix js error for forms module