Javascript Get Functionobject Based On An Untrue