Build out a wp.js framwork!!! That is the only way to make it work perfectly with wordpress look longterm. It will work how wordpress needs it to; not how someone else needs thier framework to.