still problems with js version