clean up compare map js