Javascript: more property work