[templates] remove unwanted JS code for refvals form