Insert before link element rather than base

Had an issue in an SPA where link elements would get lost and styles not applied since it was inserting them inside dynamic regions, due to script tags used for templating. This fixed it.