Adding questions on javascript objects