making js code prettier