javascript pattern(3) - Prototype pattern