improves javascript formatting