Cleaned up snippet directive

Got textareas to refresh