Close #104 - move input tag generation into helper. Refactor javascript to use global function for tag removal.