結果 : check javascript function exists before calling