Added el: '#main' and everything is working fine now!