removing unneeded parameter for js