moved infiniteJsConnector object functions from index.html to
infinit.e.js (where the code belongs)