client.js updated with parameter -l to indicate if it is a local connection or to amazon server