add userid as js variable in document