reformat code in collectio page js files