Fixed documentation issue

Also added param to Titlecase function in global.js