Fixed javascript formatting