Cleaned JS via JSHint and added conditional for menus without data-path