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