Added js to detect browser and align self icon to center