Added a namespaced functions.js