Introduced data.js replacing the server API calls

... and renamed function.js to mapping.js . Added references to d3js
and underscore.js.