Updates to the archive and favorite Javascript