Use a hash of options and output as a data attribute for use in javascript, also make easy use of Basic Auth