Moving out directive templates into the js for release