Create selection.js

all the data is stored in array