$ should be passed into the factory method
Merge pull request #49 from seanliang/master

Fix #48: $ should be passed into the factory method