Update main.js

This name is factories
Merge pull request #3 from thwess/patch-4

Update main.js