Added Embedded JS

Embedded JS added to list of libraries. Using templates to render data.
Removing view from logic