a js rep for check data. -- liubin