Using Javascript Classes within an Angular environment