Simplified some js by using jquery.
Added extra options for html-helper list-editor, onAdd and onRem.
Pass JS-functions, and they will be called on add/remove.
Old function overload kept for backwards compatibility