Added Function updatePatrollerAccount in Javascript