agent.js: Up the timeout to 5s

Makes things work better on a phone.
Expose agent version and display it