Create import.js

Currently messy code because javascript was being shit.