Create a labjs template from your javascript.