Created a Bug class which the other JS classes use.