To show the most straightforward ways in the examples you could use 'EPSG:4326' instead of ol.proj.get('EPSG:4326') here.