Added selectcontent-js function