building example js code: filters, directive, template-dir, ctrl