Added underscore.js

Added error handling to controller