maybe this is the problem with js