updated Class.js and added index file