fixed issue with js