javascript pattern I