Okay, JSON call for directions doesn't work due to lack of Google's Allow-Access-Control-Origin header. So using Google scripts and object-based calls instead.