結果 : call function based on string javascript