Try rewriting the element declaration in el: '#main'
I think this will work well for you.
By the way, according to your console log, the jQuery ($ el) element is also empty. You must declare a view before the markup is fully loaded. By providing an el selector for elements you make sure that it will be extracted only when the document is ready (loaded).
source share