added creatorpattern.js