javascript prettification