replaced $.cookie('username') parameter with $.cookie('managerid') (index.html)