Wrapping main.js in self invoking function.