Assign window.io and window.csrf value to angular value