Documented functions.js and changed the getTitle function to return a string