added bookmarklet helpercode
re-arranged placement of urlparams function