fields: add remove link, refs #56
fields: refactor the js code, refs #56