Issue resolved
The problem with classes was resolved by making factory functions to encase them in, and then they were not conflicting with each other.
The problem with classes was resolved by making factory functions to encase them in, and then they were not conflicting with each other.