test1.js updated to use a controllers object