refactoring
refactoring, support for legacy browsers