Javascript: Set up for an anonymous immediately invoked function