Dynamically view previous ten years in dropdown using Javascript