Expanded the mobileSearch directive, added an attribute parameter to simplify code, and used pure JS to handle basic DOM manipulation