Related resources for object in JavaScript