eliminated switch case in fieldDirective

I replaced the switch case with an ```for in``` loop from Coffeescript.
and there is a base url path for all templates.

I think, this looks more beautiful