Javascript for Insight Maker API