[fix] fix in url encoding in javascript