File for objects in Javascript