worked around a crazy javascript oo binding issue