Changed the way daterangepicker.js requires dependencies. It was not working correctly when minified with requirejs.