made changes

added 2 dollar signs and two vars without prefixed downloadurl