fixing problem with javascript param