A basic angularjs loader using a directive