Search bar into an independent JS file