File download & javascript validation bug fix.