format the js code in readme file