Load correct js file based on environment
Upate function to build graph. rearrange layout and index page