Added function displayAdmin() in javascript