Added resume file download, put JS in own file