Added class.js file

This is the main class