fix register js