fix  javascript fomat