make readable and pretty format to js