refactor forms rm useless js