call javascript function by string name