Dynamically view previous 10 years in dropdown using javascript.