fixing bug
Fixing bug part add document Factory.js

Add OO Factory pattern
initializing is not required