solving names errors in download js