javascript pattern(1) - Constructor pattern