fixed other js error

all js errors seem to be fixed at the moment