Cleaned up search JS