rename js function to apply get parameters