pretty up javascript