Create a directive restricted to element name and a template to output
Adjusted code accordingly to use Class, Attribute and Meta of Directives
Added foundation.css

Optimized js to make code more reusable