refactoring: dedicated js files for different views. Views now in own folder