Add a file for javascript utilities

Populate with a function for constructing absolute URLs