Split directive JS file