Don't wait until the document is loaded to load javascript dependencies

We already wait until the document is loaded to convert things to sage cells, so there shouldn't be any change to the user.