Fixed syntax error on connection variable.

I got a syntax error on `var connections = ...`
    
     module.exports = {
          var connection = navigator.connection || navigator.mozConnection
          .....

I moved it our from module.exports var to fix it.

     var connection = navigator.connection || navigator.mozConnection
     module.exports = {
          .....