Easily recycle your objects in Javascript