Cleaning up code, removed multiple references to freemarker, added url
mapping for Javascript API.