Fixed js call issue