fixed browser compatibility issues and deleted unused files