mbeanServerConnection.js: define credentials and instancesAr variables (related with issue #2?), improve code quality