Moved directive scripts to modules.