Fill select field dynamically with javascript