add JW & LiLi's JS function