added sample codes for connection (javascript)
Merge branch 'master' of https://github.com/appacitive/appacitive-docs