add correct indentation and class names

corrected js files indentation and renamed each class declaration and
instantiation name. Migrated test files to a new test folder.