JS apparently keeps object references