Updated errorcheck.js to include functionHeaders