fixed bug with calling js member functions from ruby