fixing aggregated js bug