fix javascript `object` function snippet