removed .innerHTML from compiled[0] in factory