Short term fix to stop js being loaded twice, store loaded pages in browser memory