Some tweaks to the logging format, fixed JS formatting