Working solution, although unclean
Using loadDataWithBaseUrl