Added IE compatibility for SPA