start refactoring without obtrusive js