Add getUrl function for api requests
Fix trailing slash problem
Use currentLayer and layerType as per Bennet's suggestion
Add return statement for module - returns init function
Add initialization of browse.js
Formatting
Store locations-wrapper div in variable