fixed js minor bug in singleAgentPage.js