Update import.js

Revert back to standard splitting allowing global like replacement with array_unique to prevent unnecessary empty loops.