Fixed the loading of the dashboard scripts, feeding them the needed args and fixing the path that they are fetch from.
Merge pull request #502 from spenceralger/fix-js-dashboards

Fixed dashboard scripts