linted functions.js