quote data attributes

prevents errors when these are empty strings
add utils.js to tree template
add utils.url_path_join

javascript equivalent of Python-side function.