Update of class to tell the difference between ones created from JS