Fixes issues where names were not being fixed in javascript