Popular Search : Js Get Substring From Index To End