Fixed if statements in downloads.html.
Merge branch 'dev'