fixes register js import