Javascript Get Functionobject Based Hair