javascript formatting for all