I referred to this in my comment on the list about trying to avoid jshint ignores where possible. Basically updateRelays is being picked up as undefined. This seems to be a result of the function definition being inside of a jshint ignore block.