Added ucfirst() to functions.js