Redesign javascript search module