I think I can help Patrick out using the OOD principles of Inheritance and Composition along with JavaScript's === operator.