Re-wrote plug-in using prototypal inheritance and current best practices.