Fixed computationform js for firefox