Post: getting away from javascript spaghetti with module pattern