Add onclick event for fields
 * Currently only the pretty-textarea makes use of it, but stub is in place for other fields
Minor fixes to get the build passing the linter