Javascript Download Variable As File