Proper termination of custom fields added in as JS by the plugin. issue #29