Altered the map.js to include category and directions.
Merged with cloudant.