closes #3 Moved variable declaration to access them globally

pinger, bopcast and bopclient need to be accessed outside of the jquery
wrapping function