Revert "Started using AngularJS directives"

This reverts commit 64eb4c3feda40771f3eb8527e307f48ec226c05c.