type check the parameter name, throw error if it is not a string
pass the current page url into the iffe
use a blank string if there are no parameters
todo note to fix it