small js import refactoring