Update search keyword tag js function

Add search keyword tag function in a seperate js class