add javascript fix another bug