working with eloquent JS objects example