Binary templates for JavaScript