Further work on importScript