Fixed compare page merge of php and javascript