JavaScript select navigation for responsive projects