Well at least now I know how to (sort of) make a class in Javascript. That took a while