move import.js to suit other libraries