fixed js string bug