adding request token into the index view to be used in JS API call