Working angularjs directives for page previews. See #17.