Refactor JS : prefix filter and delete directive restrict C