Refactor var declaration
Handle errors
NewAssetDirective() does not currently need to return an error
Refactor regular expressions