Bugfixes in HTML classes

addSelect method would break on input with key-value pairs.