Added exporting to charts. Controlled ordering of js bundling.