update createObject.js, add new pattern