The dependencies were placed before the call $(function) in app.js.