add select js

a js test to complete the function of selecting