wire up javascript formatter