Refactoring core intro pure JS

Refactoring core classes intro pure JS