update space js