fixing javascript tests