Object field selector for JavaScript