Better module.exports pattern in field files; cleanup based on jshint