Update aglio.js

changed rendering to  use a tempfile for large documetns