added extraHead and mobile options boolean