Added function displayPatroller in Javascript