splitting backbone logic from html