finish the original js call