reverted code changes. instead replaced self-invoking function with new global variable sails.io